package com.wangshouyu.mp.message;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.util.Objects;

/**
 * @author 王守钰
 * @date 2020年12月07日 11:17
 * @description 视频消息
 */
@XStreamAlias(value = "xml")
public class ResponseVideoMessage extends BaseMessage{

    /**
     * 响应视频
     */
    @XStreamAlias(value = "Video")
    private VideoMessage video;

    public VideoMessage getVideo() {
        return video;
    }

    public void setVideo(VideoMessage video) {
        this.video = video;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        ResponseVideoMessage that = (ResponseVideoMessage) o;
        return Objects.equals(video, that.video);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), video);
    }

    @Override
    public String toString() {
        return "ResponseVideoMessage{" +
                "video=" + video +
                '}';
    }
}
